/**
 * 进度条
 */
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useProgressStore = defineStore('progress', () => {
  const progress = ref(10)
  const progressCount = computed(() => progress.value * 2)
  function increment(num) {
    progress.value = num;
  }

  return { progress, progressCount, increment }
})
